package com.hkd.common.api;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author HKD
 * @date 2022/8/20 18:55
 */
@Slf4j
public class BaseFallBack {
    @Setter
    public Throwable cause;

    protected ApiResponse defaultFallBack() {
        cause.printStackTrace();
        return ApiResponse.error("服务响应超时，请稍后再试");
    }
}
